@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300);
.frame {
  position: absolute;
  width: 400px;
  height: 400px;
  inset: 0;
  margin: auto;
  border-radius: 2px;
  box-shadow: 1px 2px 10px rgba(0, 0, 0, 0.3);
  background: #3f3f3f;
  color: #415868;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
}

.modal {
  position: absolute;
  width: 280px;
  height: 210px;
  inset: 0;
  margin: auto;
  background-color: #fff;
  border-radius: 3px;
  box-shadow: 4px 8px 12px rgba(0, 0, 0, 0.4);
  text-align: center;
  overflow: hidden;
  animation: show-modal 0.7s ease-in-out;
}
.modal.hide {
  animation: hide-modal 0.6s ease-in-out both;
}
.modal img {
  margin-top: 24px;
}
.modal .title {
  display: block;
  font-size: 18px;
  font-weight: 400;
  margin: 14px 0 5px 0;
  line-height: 24px;
}
.modal p {
  font-size: 14px;
  font-weight: 300;
  margin: 0;
  padding: 0 30px;
  line-height: 19px;
}
.modal .button {
  position: absolute;
  height: 40px;
  width: 100%;
  left: 0;
  bottom: 0;
  background-color: #f65656;
  color: #fff;
  line-height: 40px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.3s ease-in-out;
}
.modal .button:hover {
  background-color: #ec3434;
}

@keyframes show-modal {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.1);
  }
  80% {
    transform: scale(0.95);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes hide-modal {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(0);
  }
}